package com.java.demo;

import com.java.demo.rocketmq.ProducerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author zhangyunzhe
 */
@SpringBootApplication
public class ProviderApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run= SpringApplication.run(ProviderApplication.class,args);
        ProducerService producerService= (ProducerService) run.getBean("ProducerService");
//        producerService.sendMessage();
//        producerService.sendSyncMessage();
        producerService.sendOrderMessage();
    }
}
